home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2529 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: yfn.ysu.edu!ak512
  2. From: ak512@yfn.ysu.edu (Larry Estep)
  3. Newsgroups: comp.lang.c
  4. Subject: Weird Watcom video problem
  5. Date: 22 Jan 1996 03:02:44 GMT
  6. Organization: St. Elizabeth Hospital, Youngstown, OH
  7. Message-ID: <4duuok$5up@news.ysu.edu>
  8. Reply-To: estep@morehead-st.edu (Larry Estep)
  9. NNTP-Posting-Host: yfn2.ysu.edu
  10.  
  11.  
  12.  
  13.     I'm using Watcom C 10.0 to build a 32 bit DOS program using DOS4GW.
  14. The program switches to 50 line mode while it's running and back to 25
  15. line mode when it finishes.
  16.  
  17.     I'm using _gettextcolor() and _getbkcolor() when the program starts
  18. to determine the original colors of the screen.  Then I use _settextrows()
  19. to switch to 50 line mode.
  20.  
  21.     When the program completes, I use _settextcolor() and _setbkcolor()
  22. to reset the colors (using the values I obtained above) and _settextrows()
  23. again to switch back to 25 line mode.
  24.  
  25.     Everything seems to be fine until I try running another program that
  26. uses 43/50 line mode.  For instance, I prefer the Borland C editor in 50
  27. line mode.  When I execute the editor, all of the colors are wrong.  And
  28. when I exit the editor, there's a green border around the screen.
  29.  
  30.     What is happening here, and how can I prevent it?
  31.  
  32.     Any assistance would be appreciated.
  33.  
  34. Thanks,
  35. Larry
  36.  
  37.